home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 February / Chip_2003-02_cd1.bin / zkuste / delphi / kompon / d34567 / KADAO77.ZIP / KADaoInfo Readme.txt < prev    next >
Text File  |  2000-10-20  |  4KB  |  62 lines

  1. Hi everybody
  2. KADaoInfo is a small FREE component for using Microsoft's msldbusr.dll to get information about an Access Database without opening it
  3. Also it uses a DOCUMENTED techiques to get usernames of all logged to database users
  4. I thing it will be very usefull in some cases.
  5.  
  6. Instalation:
  7. -------------
  8. First go to Microsoft Site and download jetutils.exe Package from the following URL:
  9.    http://download.microsoft.com/download/access97/utility1/1/WIN98/EN-US/JETUTILS.EXE
  10. You also may review the folowing page for more information about Jet Utils:
  11.    http://support.microsoft.com/support/kb/articles/Q176/6/70.ASP
  12. Then install all components from the package JETUTILS.EXE
  13. Copy msldbusr.dll in your Windows folder
  14.  
  15. Then: 
  16. 1. Copy KADaoInfo.pas and KDaoDatabase.dcr in directory where KADao is Installed
  17. 2. Open KADao.dpk in IDE
  18. 3. Press Add button and select KADaoInfo.pas
  19. 4. Press Compile button
  20. 5. Now KADaoInfo is in your "KA Dao" palette
  21.  
  22. Properties:
  23. -------------
  24. Property Database           : String - Set to full pathname of the Database you want to get info
  25. Property DaoInfoDll         : String - By default it points to 'msldbusr.dll'
  26. Property DatabaseVersion    : Integer - Returns the version of the selected Database
  27. Property NumberOfUsers      : Integer - Returns the total number of users logged to database
  28. Property LoggedUsers        : TStringList  - Returns the name of machines for all users connected to Database since it is open in share mode
  29. Property LoggedUsersEx      : TStringList  - Returns the name of machines/usernames for all users connected to Database since it is open in share mode
  30. Property LoggedNowUsers     : TStringList  - Returns the name of machines for currently logged users
  31. Property ErrorUsers         : TStringList  - Returns the name of machines for users caused crashing of Database
  32. Property LastError          : Integer - Returns the last error when all properties are retrieved
  33. Property LastErrorText      : String  - Returns the last error text representation when all properties are retrieved
  34. Property Active             : Boolean - Set to true to obtain info
  35.  
  36. Methods: (Doing the same without setting Active to true and retrieving only one property)
  37. ----------------
  38. Function KAGetDatabaseVersion(LibraryName,DatabasePath:String):Integer; {Fills DatabaseVersion property}
  39. Function KAGetNumberOfUsers(LibraryName,DatabasePath:String):Integer;   {Fills NumberOfUsers property}
  40. Function KAGetLoggedUsers(LibraryName,DatabasePath:String):Integer;     {Fills LoggedUsers property}
  41. Function KAGetLoggedInfo(DatabasePath:String):Boolean;                  {Fills LoggedUsersEx property} 
  42. Function KAGetLoggedNowUsers(LibraryName,DatabasePath:String):Integer;  {Fills LoggedNowUsers property}
  43. Function KAGetErrorUsers(LibraryName,DatabasePath:String):Integer;      {Fills ErrorUsers property}
  44.  
  45. Events: (All events are triggered after a call to one of six available functions so you can get LastError and LastErrorText for each)
  46. -------
  47. AfterGetDatabaseVersion
  48. AfterGetNumberOfUsers
  49. AfterGetLoggedUsers
  50. AfterGetLoggedUsersEx
  51. AfterGetLoggedNowUsers
  52. AfterGetErrorUsers
  53.  
  54.  
  55. IMPORTANT:
  56. --------------
  57. Since getting all information is based on LDB file created when an mdb is open in shared mode 
  58. You must call frequently this component to obtain realtime information about a database
  59. I am sorry but i cannot support this component by e-mail
  60. Only bugfixes/patches e-mails will be processed
  61. Kiril Antonov
  62.